package com.hktf.uilib.widget;

import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

@SuppressLint("AppCompatCustomView")
public class MarqueeTextView extends TextView {
 
    public MarqueeTextView(Context context) {
        super(context);
        init();
    }
 
    public MarqueeTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }
 
    public MarqueeTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }
    private void init(){
        setMarqueeRepeatLimit(-1);//设置无限循环
    }
 
    @Override
    public boolean isFocused() {
        return true;
    }
}